Skip to content

[DRAFT] Subgroup 2D Block IO lowering example for AxB GEMM #4608

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 20 commits into
base: main
Choose a base branch
from

Conversation

alexbaden
Copy link
Contributor

This PR demonstrates a possible lowering path for Load Ops with Subgroup 2D Block IO layout.

  • The 2D block IO instruction is dispatched in a single loop over registers in a work-item, which is consistent with other Triton SIMT backends.
  • Layout conversion is handled automatically when the ConvertLayoutOp is lowered to LLVM.
  • The subgroup 2D Block IO load lowering does not have a dependence on the DPAS layout or the Dot operand.
  • Performance is slightly worse - 25-30%. This is likely attributable to either register ordering or bitcasts.
  • Transpose is not yet supported. Some other parameters are hard coded. I expect some test failures.

Note that this depends on #4463, #4500, and #4549 - those should probably be merged first, especially since they pass tests and have been validated against the benchmarks. Merging those other PRs will dramatically reduce the scope of this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant